package com.enroll.bo.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.enroll.bo.StudentBo;
import com.enroll.dao.StudentDao;
import com.enroll.model.Student;

@Service("studentBo")
public class StudentBoImpl implements StudentBo {
	
	@Autowired
	StudentDao studentDao;
	
	public void setStudentDao(StudentDao studentDao) {
		this.studentDao = studentDao;
	}

	public void save(Student student) {
		studentDao.save(student);

	}

	@Override
	public Student findById(Integer id) {
		return studentDao.findById(id);
	}



}
